package com.coocaa.ops.admin.v1.auth.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.coocaa.ops.admin.v1.auth.sys.biz.ISysRunBiz;
import com.coocaa.ops.admin.v1.auth.sys.service.ISysRunService;
import com.coocaa.ops.common.core.base.model.R;
import com.coocaa.ops.common.core.biz.auth.entity.SysRunEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author bijiahao
 * @date : 2019/3/25.
 * @description
 */
@Service
public class SysRunServiceImpl implements ISysRunService {
    @Autowired
    private ISysRunBiz sysRunBiz;

    @Override
    public Map<String, Object> listAllRun() {
        QueryWrapper<SysRunEntity> wrapper = new QueryWrapper<>();
        wrapper.orderByAsc("seq");
        List<SysRunEntity> list = sysRunBiz.getMapper().selectList(wrapper);
        return R.ok(list);
    }
}
